


//
//  EditToFillViewController.m
//  nncloud
//
//  Created by macfeel on 2019/5/23.
//  Copyright © 2019 macfai. All rights reserved.
//

#import "EditToFillViewController.h"
#import "UITextView+PlaceHolder.h"
@interface EditToFillViewController ()
@property (weak, nonatomic) IBOutlet UITextView *textView;

@end

@implementation EditToFillViewController

//-(void)viewWillAppear:(BOOL)animated{
//    
//    [super viewWillAppear:animated];
//    self.navigationController.navigationBar.hidden = false;
//}
//
//-(void)viewWillDisappear:(BOOL)animated{
//    
//    [super viewWillDisappear:animated];
//    self.navigationController.navigationBar.hidden = YES;
//    
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationItem setItemWithTitle:@"修改信息填写" textColor:kNavigationTitleColor fontSize:18 itemType:center];
    [self addNavgationRightButtonWithFrame:CGRectMake(0, 0, 30, 30) title:@"确认" Image:@"" selectedIMG:@"" tartget:self action:@selector(sureAction)];
    // Do any additional setup after loading the view from its nib.
    self.textView.placeholder = @"请填写相关内容";
    
}

///确认修改
-(void)sureAction{
    
    if (self.textView.text.length==0) {
        [AFToast showText:@"请输入修改内容"];
        return;
    }
    if (self.block) {
        self.block(self.textView.text);
    }
    
//    [NUserModel shareInstance].currentChange = self.textView.text;
    [self.navigationController popViewControllerAnimated:YES];
    
}

@end
